import {requestFy} from '@/utils/request';
import {request} from '@/utils/request'

export const getCustomerList = async (userId) => {
    return requestFy({
        url: `/coal-customer/get-simple-list/${userId}`,
        method: 'GET'
    });
};

export const getBalances = async (customerId) => {
    return requestFy({
        url: `/coal-customer/get-balance-by-customerId/${customerId}`,
        method: 'GET',
    });
};

export const getProList = async (customerId) => {
    return requestFy({
        url: `/wechat/find-proName-v1/${customerId}`,
        method: 'GET',
    });
};
export const getDetailPage = async (data) => {
    return request({
        url: '/report/sell-waybill/detailPageTotal',
        method: 'GET',
        data: data
    });
};
export const getDetailList = async (data) => {
    return request({
        url: '/report/sell-waybill/detailPage',
        method: 'GET',
        data: data
    });
};
